package com.sx.pay.model;

import com.sx.basic.BasicEntity;
import lombok.Data;

import java.math.BigDecimal;

/**
 * @author AdinZ
 * @date 2020/8/28 19:08
 */
@Data
public class PayModel extends BasicEntity {
   /**
    * 支付商品标题
    */
   private String title;
   /**
    * 支付商品介绍
    */
   private String desc;
   /**
    * 支付单号
    */
   private String payCode;
   /**
    * 支付单号
    */
   private BigDecimal payMoney;
   /**
    * 支付方式
    */
   private PayType payType;
   /**
    * 可选, 微信支付必选
    */
   private String openId;

   public PayModel() {
   }

   public PayModel(String title, String payCode, BigDecimal payMoney) {
      this.title = title;
      this.desc=title;
      this.payCode = payCode;
      this.payMoney = payMoney;
   }

   public PayModel(String title, String desc, String payCode, BigDecimal payMoney) {
     this(title, payCode, payMoney);
     this.desc=desc;
   }

   public PayModel(String title, String desc, String payCode, BigDecimal payMoney, String openId) {
      this(title, desc, payCode, payMoney);
      this.openId = openId;
   }
}
